package com.neusoft.resturant.mapper;

import com.neusoft.resturant.entity.ResShop;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 店铺Mapper接口
 * 
 * @author Daniel
 * @date 2023-09-27
 */
@Mapper
public interface ResShopMapper 
{
    /**
     * 查询店铺
     * 
     * @param id 店铺主键
     * @return 店铺
     */
    public ResShop selectResShopById(Long id);

    /**
     * 查询店铺列表
     * 
     * @param resShop 店铺
     * @return 店铺集合
     */
    public List<ResShop> selectResShopList(ResShop resShop);

    /**
     * 查询店铺列表
     *
     * @param resShop 店铺
     * @return 店铺集合
     */
    public List<ResShop> selectResShopList1(ResShop resShop);


    /**
     * 查询店铺列表
     *
     * @param idList 店铺List
     * @return 店铺集合
     */
    public List<ResShop> selectResShopList2(List<Long> idList);


    /**
     * 查询店铺列表
     *
     * @param idArr 店铺数组
     * @return 店铺集合
     */
    public List<ResShop> selectResShopList3(Long[] idArr);

    /**
     * 查询店铺列表
     *
     * @return 店铺集合
     */
    public List<ResShop> selectMultiParam(@Param("name") String shopName, @Param("address") String shopAddr);




    /**
     * 新增店铺
     * 
     * @param resShop 店铺
     * @return 结果
     */
    public int insertResShop(ResShop resShop);

    /**
     * 修改店铺
     * 
     * @param resShop 店铺
     * @return 结果
     */
    public int updateResShop(ResShop resShop);

    /**
     * 删除店铺
     * 
     * @param id 店铺主键
     * @return 结果
     */
    public int deleteResShopById(Long id);

    /**
     * 批量删除店铺
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteResShopByIds(Long[] ids);
}
